package org.bbelovic.devel.futureexample;

public class FutureExampleResult<R> {

    private final R result;
    private final Long duration;

    public FutureExampleResult(R result, Long duration) {
        this.result = result;
        this.duration = duration;
    }

    public R getResult() {
        return result;
    }

    public Long getDuration() {
        return duration;
    }

    @Override
    public String toString() {
        return result + ", " + duration + " ms.";
    }
}
